package com.example.demo6_.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.*;

@Data
@TableName(value = "sys_user")
public class User {
    @TableId(type = IdType.AUTO)
    @TableField(value = "usr_id")
    private Integer usrId;
    @TableField(value = "usr_name")
    private String usrName;
    private String usrPassword;
    private Integer usrRoleId;
    private Integer usrFlag;

    public User() {
    }

    public User(Integer usrId, String usrName, String usrPassword, Integer usrRoleId, Integer usrFlag) {
        this.usrId = usrId;
        this.usrName = usrName;
        this.usrPassword = usrPassword;
        this.usrRoleId = usrRoleId;
        this.usrFlag = usrFlag;
    }
}
